package com.baoer.service.impl;

import com.baoer.dao.ProductCommentDao;
import com.baoer.entity.ProductComment;
import com.baoer.service.ProductCommentService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class ProductCommentServiceImpl implements ProductCommentService {
    private final ProductCommentDao commentDao;

    @Override
    public List<ProductComment> getCommentsByProductId(Integer productId) {
        return commentDao.selectByProductId(productId);
    }
}    